package bookstore.bound.order;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

public class CartItem {
    @NotNull
    String isbn;

    @NotNull
    @Size(min = 1)
    int cnt;

    public String getIsbn() {
        return isbn;
    }

    public void setIsbn(String isbn) {
        this.isbn = isbn;
    }

    public int getCnt() {
        return cnt;
    }

    public void setCnt(int cnt) {
        this.cnt = cnt;
    }

    @Override
    public String toString() {
        return isbn + " / " + cnt;
    }
}
